<?php
define('Root', dirname(__FILE__));
include Root.'/libs/Smarty.class.php';
error_reporting(0);
   // 连接数据库
   $conn = mysql_connect('localhost','root','');
   mysql_select_db('blog',$conn);
   mysql_query("set names utf8");

   /*
   if($_POST['name'] == 'getuser'){
   $id = $_POST["id"];
   $list = mysql_query("select * from user where id=$id");
   $row = mysql_fetch_array($list);
   echo json_encode(array($row));
   }
   */

?>
    
